package com.rentong.wx.sys.controller;

import com.rentong.common.R;
import com.rentong.wx.sys.domain.SysConfHelpEntity;
import com.rentong.wx.sys.service.SysConfHelpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SysConfHelpController {

    @Autowired
    private SysConfHelpService sysConfHelpService;

    //303、帮助列表
    @PostMapping("/sysConfHelp/getHelpInfoList")
    public R getHelpInfoList(Integer pageNum,Integer pageSize,Integer helpType){
        return R.success(sysConfHelpService.getHelpInfoList(pageNum,pageSize,helpType));
    }

    //304、帮助详情
    @PostMapping("/sysConfHelp/getHelpInfoById")
    public R getHelpInfoById(Long helpId){
        return R.success(sysConfHelpService.getHelpInfoById(helpId));
    }
}
